var express = require("express");
var router = express.Router();
var userModel = require("../../models/user/user");

router.get("/", function (req, res, next) {
  userModel.find({}, function (err, docs) {
    if (!err) {
      res.json({ data: docs, msg: "返回成功！", code: 200 });
    }
  });
});

module.exports = router;